import $axios from '../index.js'

// 广告列表
function advertList(data) {
  const url = '/advertisement/index'
  return $axios.get(url, data)
}
// 广告详情
function advertInfo(data) {
  const url = '/advertisement/read'
  return $axios.get(url, data)
}
// 广告添加
function advertSave(data) {
  const url = '/advertisement/save'
  return $axios.post(url, data)
}
// 广告编辑
function advertUpdate(data) {
  const url = '/advertisement/update'
  return $axios.post(url, data)
}
// 广告删除
function advertDelete(data) {
  const url = '/advertisement/delete'
  return $axios.post(url, data)
}

export default {
  advertList,
  advertSave,
  advertUpdate,
  advertDelete,
  advertInfo
}
